from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession ,async_sessionmaker 
from sqlalchemy.orm import DeclarativeBase 


from ..config.config import get_settings 

async_engine = create_async_engine(get_settings().ASYNC_DATABASE_URL, echo=True)

class Base(DeclarativeBase):
    pass 

SessionLocal = async_sessionmaker(bind=async_engine, expire_on_commit=False)


